package com.mtsmda.chapter2.overridingEx;

import java.io.IOException;

public class Tree {

	public void showLeaves() {
		System.out.println("Tree");
	}

	public String showLeaves(String name) {
		System.out.println("Tree " + name);
		return "Tree " + name;
	}

	public void showLeaves(int age) {
		System.out.println("Tree " + age);
	}

	public Tree getTree() {
		return new Tree();
	}

	public void threeException() throws IOException {

	}

	protected void threeException(String name) throws IOException {

	}
	
	protected void getA(){
		System.out.println("getA()");
	}

}